<!doctype html>
<html xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>评分结果提交表</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../static/css/bootstrap.min.css" />
    <link rel="stylesheet" href="../static/css/bootstrap-theme.css" />
    <!--<link rel="stylesheet" href="statics/css/AdminLTE.min.css">-->

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!-- 基本的jquery引用，1.5版本以上 -->
    <script src="../static/js/jquery.min.js"></script>
    <script src="../static/js/vue.js"></script>
    <script src="../static/js/bootstrap.min.js"></script>
    <script src="../static/libs/ajaxupload.js"></script>
</head>

<body>
<div class="container-fluid"  id="rrapp" v-cloak>
    <div class="row-fluid">
        <div class="col-sm-12">

            当前上传料理总数：{{totalDish}}
            <br/>
            (回味无穷奖)味道最佳得分：{{tasteFavor.name}}| 所属餐桌：{{tasteFavor.table}}| 最终得分：{{tasteFavor.avg}}<br/>
            (最佳颜值奖)造型最佳得分：{{exteriorFavor.name}}| 所属餐桌：{{exteriorFavor.table}}| 最终得分：{{exteriorFavor.avg}}<br/>
            (创意满分奖)创意最佳得分：{{originalityFavor.name}}| 所属餐桌：{{originalityFavor.table}}| 最终得分：{{originalityFavor.avg}}<br/>
            各个分数如下：
            <h2>味道得分</h2>
            <li v-for="score in tasteRes">
                {{score.name}}&nbsp;|&nbsp;所属餐桌：{{score.table}}&nbsp;|&nbsp;当前平均分：{{score.avg}}<br/>
                最高分：{{score.max}}&nbsp;|&nbsp;最低分：{{score.min}}&nbsp;|&nbsp;已评价裁判数：{{score.scoreCount}}&nbsp;|&nbsp;已评价裁判：{{score.from}}
            </li>
            <h2>外观得分</h2>
            <li v-for="score in exteriorRes">
                {{score.name}}&nbsp;|&nbsp;所属餐桌：{{score.table}}&nbsp;|&nbsp;当前平均分：{{score.avg}}<br/>
                最高分：{{score.max}}&nbsp;|&nbsp;最低分：{{score.min}}&nbsp;|&nbsp;已评价裁判数：{{score.scoreCount}}&nbsp;|&nbsp;已评价裁判：{{score.from}}
            </li>
            <h2>创意得分</h2>
            <li v-for="score in originalityRes">
                {{score.name}}&nbsp;|&nbsp;所属餐桌：{{score.table}}&nbsp;|&nbsp;当前平均分：{{score.avg}}<br/>
                最高分：{{score.max}}&nbsp;|&nbsp;最低分：{{score.min}}&nbsp;|&nbsp;已评价裁判数：{{score.scoreCount}}&nbsp;|&nbsp;已评价裁判：{{score.from}}
            </li>
            <form class="form-horizontal">
                <fieldset>
                    <div id="legend" class="">
                        <legend class="">料理信息重置</legend>
                    </div>
                    <div class="control-group">
                        <label class="control-label">所属桌号</label>
                        <div class="controls">
                            <!--<input v-model="dish.table" type="text" placeholder="1到14" class="input-xlarge">-->
                            <select v-model="dish.table">
                                <option v-for="item in [1,2,3,4,5,6,7,8,9,10,11,12,13,14]" v-bind:value="item">{{item}}</option>
                            </select>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label"></label>
                        <div class="controls">
                            <button class="btn btn-danger" v-on:click="removeDish" type="button">重置该桌提交的料理信息</button>
                            {{removeDishMsg}}
                        </div>
                    </div>
                </fieldset>
            </form>
            <form class="form-horizontal">
                <fieldset>
                    <div id="legend2" class="">
                        <legend class="">评分信息重置</legend>
                    </div>
                    <div class="control-group">
                        <label class="control-label">料理编号</label>
                        <div class="controls">
                            <input v-model="score.dishId" type="text" placeholder="料理编号" class="input-xlarge">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">裁判桌号</label>
                        <div class="controls">
                            <!--<input v-model="score.raterTable" type="text" placeholder="1到14" class="input-xlarge">-->
                            <select v-model="score.raterTable">
                                <option v-for="item in [1,2,3,4,5,6,7,8,9,10,11,12,13,14]" v-bind:value="item">{{item}}</option>
                            </select>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label"></label>
                        <div class="controls">
                            <button class="btn btn-danger" v-on:click="removeScore" type="button">重置指定的料理评分</button>
                            {{removeScoreMsg}}
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label"></label>
                        <div class="controls">
                            <button class="btn btn-danger" v-on:click="removeSys" type="button">系统重置</button>
                            {{msg}}
                        </div>
                    </div>
                </fieldset>
            </form>
        </div>
    </div>
</div><!-- container -->
<script src="../static/js/admin.js"></script>
</body>
</html>